package be.kuleuven.cs.mop.gui.components;


import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.JButton;



public class ActionButton extends JButton {
	private static final long serialVersionUID = 1L;
	
	
	public ActionButton(final String text, final Dimension size,
			final ActionListener listener) {
		this(text, size, listener, "");
	}
	public ActionButton(final String text, final Dimension size,
			final ActionListener listener, final String command) {
		super(text);
		addActionListener(listener);
		setActionCommand(command);
		setFocusable(false);
		setFont(new Font("Helvetica", Font.BOLD, 14));
		setPreferredSize(size);
	}
	
}